#ifndef ACTIONDESSIN_H
#define ACTIONDESSIN_H

#ifndef WX_PRECOMP
    #include <wx/wx.h>
#endif

class Dessin;

class ActionDessin
{
  public:
    ActionDessin();
    virtual void OnMousePressed(Dessin*,wxMouseEvent&)=0;
    virtual void OnRelease(Dessin*,wxMouseEvent&)=0;
    virtual void OnMotion(Dessin*,wxMouseEvent&)=0;
    virtual void OnTimer(Dessin*,wxTimerEvent&)=0;
    virtual void correctDimension(Dessin*)=0;


    virtual bool anyEdgeReached(Dessin*);
    virtual bool nEdgeReached(Dessin*);
    virtual bool wEdgeReached(Dessin*);
    virtual bool eEdgeReached(Dessin*);
    virtual bool sEdgeReached(Dessin*);

protected:
     bool selected;

};

#endif // ACTIONDESSIN_H
